import request from '@/utils/request'

//查询作者
export function getAllAuthor(SelectAuthor){
  return request({
    url: '/poetryAuthor/listAuthor',
    method: 'get',
    params: SelectAuthor
  })
}
//删除作者
export function deleteAuthor(id){
  return request({
    url: '/poetryAuthor/deleteAuthor',
    method: 'delete',
    params: id
  })
}
//修改作者
export function UpdateAuthor(Author){
  return request({
    url: '/poetryAuthor/updateAuthor',
    method: 'post',
    params: Author
  })
}
//添加作者
export function InsertAuthor(Author){
  return request({
    url: '/poetryAuthor/insertAuthor',
    method:'post',
    params: Author
  })
}
